package kr.hkit.powerjava.chapter07;

public class Caculator {
	int left;
	int right;
	
	public void setOperand(int left, int right){
		this.left = left;
		this.right = right;
	}
	
	public void sum(){
		System.out.println(left+right);
	}
	public void avg(){
		System.out.println((left+right)/2);
	}
	public String toString(){
		return "left : " + this.left + ", right : "+this.right;
	}
	
}
